package com.niubility.entity;

import java.io.Serializable;

public class Message implements Serializable {
    private int mesId;
    private int mesSendid;
    private int mesMainid;
    private int mesAssessmark = 0;
    private String mesText;
    private String mesDate;
    private String mesMark;

    public Message() {
    }

    public Message(int mesId, int mesSendid, int mesMainid, int mesAssessmark, String mesText, String mesDate, String mesMark) {
        this.mesId = mesId;
        this.mesSendid = mesSendid;
        this.mesMainid = mesMainid;
        this.mesAssessmark = mesAssessmark;
        this.mesText = mesText;
        this.mesDate = mesDate;
        this.mesMark = mesMark;
    }

    public Message(int mesSendid, int mesMainid, int mesAssessmark, String mesText, String mesDate, String mesMark) {
        this.mesSendid = mesSendid;
        this.mesMainid = mesMainid;
        this.mesAssessmark = mesAssessmark;
        this.mesText = mesText;
        this.mesDate = mesDate;
        this.mesMark = mesMark;
    }

    public int getMesId() {
        return mesId;
    }

    public void setMesId(int mesId) {
        this.mesId = mesId;
    }

    public int getMesSendid() {
        return mesSendid;
    }

    public void setMesSendid(int mesSendid) {
        this.mesSendid = mesSendid;
    }

    public int getMesMainid() {
        return mesMainid;
    }

    public void setMesMainid(int mesMainid) {
        this.mesMainid = mesMainid;
    }

    public int getMesAssessmark() {
        return mesAssessmark;
    }

    public void setMesAssessmark(int mesAssessmark) {
        this.mesAssessmark = mesAssessmark;
    }

    public String getMesText() {
        return mesText;
    }

    public void setMesText(String mesText) {
        this.mesText = mesText;
    }

    public String getMesDate() {
        return mesDate;
    }

    public void setMesDate(String mesDate) {
        this.mesDate = mesDate;
    }

    public String getMesMark() {
        return mesMark;
    }

    public void setMesMark(String mesMark) {
        this.mesMark = mesMark;
        }

    @Override
    public String toString() {
        return "Message{" +
                "mesId=" + mesId +
                ", mesSendid=" + mesSendid +
                ", mesMainid=" + mesMainid +
                ", mesAssessmark=" + mesAssessmark +
                ", mesText='" + mesText + '\'' +
                ", mesDate='" + mesDate + '\'' +
                ", mesMark='" + mesMark + '\'' +
                '}';
    }
}



